import { savesessionStorage, delsessionStorage } from '../sessionStorage/index'
export default {
    saveUserNameMUtation(state, UserInfo) {
        state.UserInfo = UserInfo;
        savesessionStorage('UserInfo', UserInfo)
    },
    socketInfoMUtation(state, socketInfo) {
        state.socketInfo = socketInfo;
        savesessionStorage('socketInfo', socketInfo)
    },
    delsocketInfoMUtation(state) {
        state.socketInfo = null;
        delsessionStorage('socketInfo');
    }

}